package com.mapper;

import com.entity.PostMedia;
import org.apache.ibatis.annotations.Param;

/**
 * ClassName: PostMediaDao
 * Description:
 *
 * @author L_Z_R
 * @create 2025/04/16 16:29
 * @version 1.0
 */
public interface PostMediaMapper {
    /**
     * 添加帖子媒体信息
     * @param postMedia 帖子媒体信息对象
     */
    void addPostMedia(PostMedia postMedia);

    /**
     * 根据帖子ID查询帖子媒体信息
     * @param postId 帖子ID
     * @return 帖子媒体信息对象
     */
    PostMedia selectPostMediaByPostId(@Param("postId") Integer postId);
}
